<div ng-controller="storeDetailController">
	<ol class="breadcrumb">
		您所在的位置：
		<li>
			<a href="#/index">首页</a>
		</li>
		<li>
			<a href="#/tax-check">对账</a>
		</li>
		<li>
			<a href="" ng-click="toProducer()">入库对账</a>
		</li>
		<li class="active">对账详情</li>
	</ol>
	<!--<div class="detail-list-box" style="float: inherit;">
		<div class="detail-box-left" style="width:30%">
			<h5 class="ns-list-box-title">纳税人：{{datarktaxPayerName}}</h5>
			<span>应征凭证号：{{data.taxPayerCode}}</span>
		</div>
		<span style="width:20%" class="detail-box-center">缴纳总额：<lable >{{data.paymentAmount}}元</lable></span>
		<div class="detail-box-right" style="width:30%;">
			<h5 class="ns-list-box-title">对账情况：
				<lable ng-if="data.paymentAmount==data.storageTax" style="color: green;">正常</lable>
				<lable ng-if="data.paymentAmount!=data.storageTax" style="color: red;">异常</lable>
				
			</h5>
			<span>入库时间：{{data.storageTime| date:'yyyy-MM-dd hh:mm:ss'}}</span>
		</div>
		
		<div class="detail-box-button">	
			<button type="button" ng-if="data.paystate>=4" class="btn btn-success jiaona-success">已缴纳</button>
			<button type="button" ng-if="data.paystate==5" class="btn btn-primary ruku-success">已入库</button>
		</div>
	</div>-->
	<div class="ns-list-box" >
		<div class="list-box-left" style="width: 23%;">
			<h4 class="ns-list-box-title" style="font-size: 14px;">纳税人：{{datark.taxPayerName}}</h4>
			<span>纳税人识别号：{{datark.taxPayerCode}}</span>
		</div>
		<div class="list-box-center" style="line-height:0px;font-size:14px;">
			<h4 class="ns-list-box-title" style="font-size: 14px;padding: 10px 0px;height: 45px;">
	     		应缴税额：{{datark.shoudAmount}}元
	     	</h4>
			<span>税款种类：{{datark.taxType | taxType}}</span>
		</div>
	
		<div class="list-box-center" style="line-height:0px;font-size:14px;width:20%;">
			<h4 class="ns-list-box-title" style="font-size: 14px;padding: 10px 0px;height: 45px;">
	     		税务机关名称：{{datark.officeName}}
	     	</h4>
			<span>税款所属期止：{{datark.taxEnd | date:'yyyy-MM-dd'}}</span>
		</div>
		<div class="list-box-right" style="width: 23%;">
			<h5 class="ns-list-box-title">对账情况： 
	     		<span id="paymentOk" class="ok-green" ></span>
	     	</h5>
			<span>入库时间：{{datark.storageTime| date:'yyyy-MM-dd hh:mm:ss'}}</span>
		</div>
		<!--<div class="list-box-right" style="width: 13%;">
			<h5 class="ns-list-box-title" style="padding: 10px 10px;">是否逾期：
	     		<lable  class="ok-green">{{datark.taxOverdue | overdue}}</lable
	     	</h5>
			
		</div>-->
	</div>
	<div class="store-main">
		<div class="panel panel-primary store-panel">
			<div class="panel-heading">第三方支付</div>
			<table class="store-table">
				<tr>
					<td>纳税人</td>
					<td>{{datark.taxPayerName}}</td>
				</tr>
				<tr>
					<td>纳税人识别号</td>
					<td>{{datark.taxPayerCode}}</td>
				</tr>
				<tr>
					<td>应征税款凭证号</td>
					<td>{{datark.payableVoucherNo}}</td>
				</tr>
				<tr>
					<td>税务机关名称</td>
					<td>{{datark.officeName}}</td>
				</tr>
				<tr>
					<td>征收项目</td>
					<td>{{datark.zsxmMc}}</td>
				</tr>
				<tr>
					<td>应缴金额</td>
					<td>{{datark.shoudAmount}}元</td>
				</tr>
				<tr>
					<td>实缴金额</td>
					<td>{{datark.paymentAmount}}元</td>
				</tr>
				<tr>
					<td>入库时间</td>
					<td>{{datark.storageTime | date:'yyyy-MM-dd hh:mm:ss'}}</td>
				</tr>
				<tr>
					<td>交易流水号</td>
					<td>{{datark.reqMsgId}}</td>
				</tr>
				<tr>
					<td>支付时间</td>
					<td>{{datark.paymentDate | date:'yyyy-MM-dd hh:mm:ss'}}</td>
				</tr>
				<tr>
					<td>支付方式(来源)</td>
					<td>{{datark.payWayEn | payWayEn}}</td>					
					<td>{{datark.payWayEn | payWay}}</td>
				</tr>
				<tr>
					<td>缴税平台</td>
					<td>{{datark.payPlatformId | payPlat}}</td>
				</tr>
				<tr>
					<td>税款种类</td>
					<td>{{datark.taxType | taxType}}</td>
				</tr>
				<tr>
					<td>应征处理日期</td>
					<td>{{datark.payableDate | date:'yyyy-MM-dd hh:mm:ss'}}</td>
				</tr>
				<tr>
					<td>税款所属期起</td>
					<td>{{datark.taxStart | date:'yyyy-MM-dd hh:mm:ss'}}</td>
				</tr>
				<tr>
					<td>税款所属期止</td>
					<td>{{datark.taxEnd | date:'yyyy-MM-dd hh:mm:ss'}}</td>
				</tr>
				<tr>
					<td>滞纳金开票金额</td>
					<td>{{datark.taxOverdue}}元</td>
				</tr>
				
				<!--<tr>
					<td>电子缴税凭证</td>
					<td><a ng-click="detailDzjspz(datark.taxCertificate)" data-toggle="modal" data-target="#yzDetailModal">点击查看</a></td>
				</tr>-->
			</table>
		</div>
		<div class="store-judge">
			<table class="store-table">
				<tr>
					<td style="padding: 3px;"><span class="glyphicon glyphicon-ok ok-green"></td></tr>
        		<tr><td style="padding: 3px;"><span class="glyphicon glyphicon-ok ok-green"></td></tr>
        		<tr><td style="padding: 3px;"><span class="glyphicon glyphicon-ok ok-green"></td></tr>
        		<tr><td style="padding: 3px;"><span class="glyphicon glyphicon-ok ok-green"></td></tr>
    			<tr><td style="padding: 3px;"><span class="glyphicon glyphicon-ok ok-green"></td></tr>
    			<tr><td style="padding: 3px;"><span class="glyphicon glyphicon-ok ok-green"></td></tr>
    			<tr><td style="padding: 3px;">
        			<span id="shuie" class="glyphicon glyphicon-ok ok-green">
        		</td></tr>
    			<tr><td style="padding: 3px;"><span class="glyphicon glyphicon-ok ok-green"></td></tr>
    			<tr><td style="padding: 3px;"><span class="glyphicon glyphicon-ok ok-green"></td></tr>
    			<tr><td style="padding: 3px;"><span class="glyphicon glyphicon-ok ok-green"></td></tr>
    			<tr><td style="padding: 3px;"><span class="glyphicon glyphicon-ok ok-green"></td></tr>
    			
    			<tr><td style="padding: 3px;"><span class="glyphicon glyphicon-ok ok-green"></td></tr>
    			<tr><td style="padding: 3px;"><span class="glyphicon glyphicon-ok ok-green"></td></tr>
    			<tr><td style="padding: 3px;"><span class="glyphicon glyphicon-ok ok-green"></td></tr>
    			<tr><td style="padding: 3px;"><span class="glyphicon glyphicon-ok ok-green"></td></tr>
    			<tr><td style="padding: 3px;"><span class="glyphicon glyphicon-ok ok-green"></td></tr>
			</table>
		</div>
		<div class="panel panel-primary store-panel">
    		<div class="panel-heading">已入库</div>
    		<table class="store-table">
        		<tr><td>纳税人</td><td>{{datark.taxPayerName}}</td></tr>
        		<tr><td>纳税人识别号</td><td>{{datark.taxPayerCode}}</td></tr>
        		<tr><td>应征税款凭证号</td><td>{{datark.payableVoucherNo}}</td></tr>
        		<tr><td>税务机关名称</td><td>{{datark.officeName}}</td></tr>
        		<tr><td>征收项目</td><td>{{datark.zsxmMc}}</td></tr>
        		<tr><td>应缴金额</td><td>{{datark.shoudAmount}}元</td></tr>
        		<tr><td>入库金额</td><td>{{datark.storageTax}}元</td></tr>
        		<tr><td>入库时间</td><td>{{datark.storageTime | date:'yyyy-MM-dd hh:mm:ss'}}</td></tr>
        		<tr><td>交易流水号</td><td>{{datark.reqMsgId}}</td></tr>
        		<tr><td>支付时间</td><td>{{datark.paymentDate | date:'yyyy-MM-dd hh:mm:ss'}}</td></tr>
        		<tr>
					<td>支付方式(来源)</td>
					<td>{{datark.payWayEn | payWayEn}}</td>					
					<td>{{datark.payWayEn | payWay}}</td>
				</tr>
        		<tr>
					<td>缴税平台</td>
					<td>{{datark.payPlatformId | payPlat}}</td>
				</tr>
        		<tr>
					<td>税款种类</td>
					<td>{{datark.taxType | taxType}}</td>
				</tr>
				<tr>
					<td>应征处理日期</td>
					<td>{{datark.payableDate | date:'yyyy-MM-dd hh:mm:ss'}}</td>
				</tr>
        		<tr>
					<td>税款所属期起</td>
					<td>{{datark.taxStart | date:'yyyy-MM-dd hh:mm:ss'}}</td>
				</tr>
				<tr>
					<td>税款所属期止</td>
					<td>{{datark.taxEnd | date:'yyyy-MM-dd hh:mm:ss'}}</td>
				</tr>
        		<tr><td>滞纳金开票金额</td><td>{{datark.taxOverdue}}元</td></tr>
        		
    		</table>
		</div>
	</div>
	<div class="modal fade" id="yzDetailModal" tabindex="-1" role="dialog" aria-labelledby="yzDetailModalLabel" aria-hidden="true">
    <div class="modal-dialog" style="width: 60%;">
        <div class="modal-content" style="">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
                <h4 class="modal-title" id="myModalLabel">电子缴税凭证</h4>
            </div>
            <div class="modal-body" style="height:400px;">
            	<div class="details_content" style="width:50%">
            		<dl class="dl-horizontal" >
            			<dt>凭证字号：</dt>
            			<dd>{{certdata.voucherNumber}}</dd>
            			<dt >转账日期：</dt>
            			<dd>{{certdata.transDate | date :'yyyy-MM-dd HH:mm:ss'}}</dd>
            			<dt>缴款书交易流水号：</dt>
            			<dd>{{certdata.serialNumber}}</dd>
            			<dt>税票号码：</dt>
            			<dd>{{certdata.invoiceNumber}}</dd>
            			<dt>纳税人全称：</dt>
            			<dd>{{certdata.taxPayerName}}</dd>
            			<dt>纳税人识别号：</dt>
            			<dd>{{certdata.taxPayerCode}}</dd>
            			<dt>征收机关名：</dt>
            			<dd>{{certdata.collectionAuthorityName}}</dd>
            		</dl>
            	</div>
            	<div class="details_content" style="width:50%"> 
            		<dl class="dl-horizontal" >	
            			<dt>付款人全称：</dt>
            			<dd>{{certdata.payerName}}</dd>
            			<dt >付款人账号：</dt>
            			<dd>{{certdata.payerAccount}}</dd>
            			<dt>付款人开户银行：</dt>
            			<dd>{{certdata.payerBank}}</dd>
            			
            			<dt>收款国库(银行)名称：</dt>
            			<dd>{{certdata.receiptBankName}}</dd>
            			<dt>税(费)种名称：</dt>
            			<dd>{{certdata.taxName}}</dd>
            			<dt>所属时期：</dt>
            			<dd>{{certdata.period | date :'yyyy-MM-dd HH:mm:ss'}}</dd>
            			<dt>实缴金额：</dt>
            			<dd>{{certdata.paymentAmount}}元</dd>
            		</dl>
            	</div>
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
            </div>
        </div><!-- /.modal-content -->
    </div><!-- /.modal -->
</div>
</div>
<!-- 模态框（Modal） -->
